package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbTarget entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_TARGET", schema = "dbo", catalog = "AGDB")
public class TbTarget implements java.io.Serializable {

	// Fields

	private String TId;
	private TbEvent tbEvent;
	private String TName;
	private String TCause;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbTarget() {
	}

	/** minimal constructor */
	public TbTarget(String TId) {
		this.TId = TId;
	}

	/** full constructor */
	public TbTarget(String TId, TbEvent tbEvent, String TName, String TCause,
			String a, String b, String c) {
		this.TId = TId;
		this.tbEvent = tbEvent;
		this.TName = TName;
		this.TCause = TCause;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "T_ID", unique = true, nullable = false, length = 10)
	public String getTId() {
		return this.TId;
	}

	public void setTId(String TId) {
		this.TId = TId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "E_ID")
	public TbEvent getTbEvent() {
		return this.tbEvent;
	}

	public void setTbEvent(TbEvent tbEvent) {
		this.tbEvent = tbEvent;
	}

	@Column(name = "T_NAME", length = 50)
	public String getTName() {
		return this.TName;
	}

	public void setTName(String TName) {
		this.TName = TName;
	}

	@Column(name = "T_CAUSE", length = 200)
	public String getTCause() {
		return this.TCause;
	}

	public void setTCause(String TCause) {
		this.TCause = TCause;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}